cask 'audirvana' do
  version '3.5.38'
  sha256 '0c49c4a984636491444f0b86e1087f55401e1f1d6df3dcaf5f20c019e7500813'

  url "https://audirvana.com/delivery/Audirvana_#{version}.dmg"
  appcast "https://audirvana.com/delivery/audirvana#{version.major}_#{version.minor}_appcast.xml"
  name 'Audirvana'
  homepage 'https://audirvana.com/'

  app 'Audirvana.app'

  zap trash: [
               '/Library/LaunchDaemons/com.audirvana.Audirvana-Plus.plist',
               '/Library/LaunchDaemons/com.audirvana.SysOptimizerTool.plist',
               '/Library/PrivilegedHelperTools/com.audirvana.Audirvana-Plus',
               '~/Library/Caches/com.audirvana.Audirvana-Plus',
               '~/Library/Cookies/com.audirvana.Audirvana-Plus.binarycookies',
               '~/Library/Preferencescom.audirvana.Audirvana.plist',
               '~/Library/Preferences/com.audirvana.Audirvana-Plus.plist',
             ]
end
